package com.scan.record.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 扫码信息记录对象 scan_record_info
 * 
 * @author ysz
 * @date 2023-04-22
 */
public class ScanRecordInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String scanId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 扫码归属地 */
    @Excel(name = "扫码归属地")
    private String scanBelong;

    /** 扫码时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "扫码时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date scanTime;

    public void setScanId(String scanId) 
    {
        this.scanId = scanId;
    }

    public String getScanId() 
    {
        return scanId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setScanBelong(String scanBelong) 
    {
        this.scanBelong = scanBelong;
    }

    public String getScanBelong() 
    {
        return scanBelong;
    }
    public void setScanTime(Date scanTime) 
    {
        this.scanTime = scanTime;
    }

    public Date getScanTime() 
    {
        return scanTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("scanId", getScanId())
            .append("userName", getUserName())
            .append("scanBelong", getScanBelong())
            .append("scanTime", getScanTime())
            .toString();
    }
}
